
//  Copyright (c) 2015年 centling. All rights reserved.
//

#import "UserDefaultHandler.h"


@implementation UserDefaultHandler

+(void)initUserDefault{
    
    [self saveUserDetault:@"" key:kUserKey];
    [self saveUserDetault:@"" key:kSellerName];
    [self saveUserDetault:@"" key:kMemberName];
    [self saveUserDetault:@"" key:kUserPwd];
    [self saveUserDetault:@"" key:kMobileCaptcha];

    NSLog(@"%@",NSHomeDirectory());
}

+(void)saveUserDetault:(id) object key:(NSString *)key{
    [[NSUserDefaults standardUserDefaults] setValue:object forKey:key];
}

+(id)getUserDetaultString:(NSString *)key {
    return [NSString stringWithFormat:@"%@",[[NSUserDefaults standardUserDefaults] objectForKey:key]];
}

+(NSDictionary *)getUserDetaultDictionary:(NSString *)key{
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

+(NSMutableArray *)getUserDetaultArray:(NSString *)key{
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

+(NSDate *)getUserDetaultDate:(NSString *)key{
    return [[NSUserDefaults standardUserDefaults] objectForKey:key];
}

@end
